	$(function(){
        //按钮单击时执行
        $("#profile_do").click(function(){
			toastr.options = {
			  "closeButton": true,
			  "debug": false,
			  "progressBar": true,
			  "positionClass": "toast-bottom-full-width",
			  "onclick": null,
			  "showDuration": "400",
			  "hideDuration": "1000",
			  "timeOut": "7000",
			  "extendedTimeOut": "1000",
			  "showEasing": "swing",
			  "hideEasing": "linear",
			  "showMethod": "fadeIn",
			  "hideMethod": "fadeOut"
			}
			var name = $('#name').val();
			var sex = $("input[name='sex']:checked").val();
			var birthday = $('#birthday').val();
			var address = $('#address').val();
            //Ajax调用处理
			var profile_do = $.ajax({
               type: "POST",
               url: "index.php?m=user&c=user_profile&a=profile_basic_do",
               data: "name="+name+"&sex="+sex+"&birthday="+birthday+"&address="+address,
               async: false
            }).responseText;
			if (profile_do == "1") {
				toastr.success("用户数据更新成功！");
				self.location.reload();
			} else {
				toastr.error("请勿提交非法数据！");
				self.location.reload();
			}
         });		 
    });